package com.tsd.jxc.report.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.report.vo.JxcBuySaleBillDetailVo;
import com.tsd.jxc.report.vo.JxcStockInOutBillInventoryVo;
import com.tsd.jxc.report.vo.JxcStockInOutBillReportVo;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public interface JxcReportMapper {

    /**
     * 采购报表-采购汇总报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectBuyOrderCollectReportList(@Param("params") Map<String, Object> params);

    /**
     * 采购报表-采购退货汇总报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectBuyReturnCollectReportList(@Param("params") Map<String, Object> params);

    /**
     * 采购报表-采购年度报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectBuyYearReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 采购报表-采购退货年度报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectBuyReturnYearReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 采购报表-采购商品报表
     *
     * @param params
     * @param page
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectBuyGoodsReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 采购报表-采购退货商品报表
     *
     * @param params
     * @param page
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectBuyReturnGoodsReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 销售报表-销售汇总报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectSaleOrderCollectReportList(@Param("params") Map<String, Object> params);

    /**
     * 销售报表-销售退货汇总报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectSaleReturnCollectReportList(@Param("params") Map<String, Object> params);

    /**
     * 销售报表-销售年度报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectSaleYearReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 销售报表-销售退货年度报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectSaleReturnYearReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 销售报表-销售商品报表
     *
     * @param params
     * @param page
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectSaleGoodsReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 销售报表-销售退货商品报表
     *
     * @param params
     * @param page
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectSaleReturnGoodsReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 库存报表-入库统计
     *
     * @param params
     * @param page
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectStockInbillReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 库存报表-出库统计
     *
     * @param params
     * @param page
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectStockOutbillReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 库存报表-盘盈盘亏
     *
     * @param params
     * @param page
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectStockInventoryReportListByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    /**
     * 采购金额 Echart 报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectBuyAmountQtyVisualChartList(@Param("params") Map<String, Object> params);

    /**
     * 销售金额 Echart 报表
     *
     * @param params
     * @return
     */
    LinkedList<LinkedHashMap<String, Object>> selectSaleAmountQtyVisualChartList(@Param("params") Map<String, Object> params);

    List<JxcStockInOutBillReportVo> selectJxcStockInOutBillReportByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockInOutBillInventoryVo> selectJxcStockInOutBillInventoryByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcBuySaleBillDetailVo> selectBuySaleBillDetailReport(@Param("params") Map<String, Object> params, @Param("page") PageBean page);
}
